package suphero;

public class SortRectangles {
  public static void main(String[] args) {
    Comparabletriangle[] rectangles = {
      new Comparabletriangle(6, 8),
      new Comparabletriangle(13, 55),
      new Comparabletriangle(7, 35),
      new Comparabletriangle(1, 25)};
    java.util.Arrays.sort(rectangles);
    for (Rectangle rectangle: rectangles) {
      System.out.print(rectangle + " "); 
      System.out.println();
    }
  }
}
